class Sample(AutoPrefs):
    def __init__(self):
        AutoPrefs.__init__(self, '/app/sample/')
 
        # defaults
        self.gc_width = 10
        self.gc_open = False
        self.gc_name = "Sample"
 
        self.gconf_load()
 
# main
s = Sample()
print s.gc_width
print s.gc_open
print s.gc_name
 
s.gc_name = "Other"
s.gc_open = True
 
s.gconf_save()
